<html>
<head>
<title>Administrator Area &raquo; Slutena Mujarab</title>
<link rel="stylesheet" type="text/css" href="../style_admin.css">
<link rel="stylesheet" type="text/css" href="../libraries/fsmenu/admin_listmenu.css">
<link rel="shortcut icon" type="image/x-icon" href="../images/favicon.ico" />
<?php if (IsLoggedIn()) { ?>
<script language="javascript" type="text/javascript" src="../libraries/fsmenu/fsmenu.js"></script>
<script language="javascript" type="text/javascript">
	var listMenu = new FSMenu('listMenu', true, 'display', 'block', 'none');
	listMenu.animations[listMenu.animations.length] = FSMenu.animFade;
	listMenu.animations[listMenu.animations.length] = FSMenu.animSwipeDown;
	var arrow = null;
	if (document.createElement && document.documentElement)
	{
	 arrow = document.createElement('div');
	 arrow.innerHTML='&nbsp;';
	 arrow.className = 'subind';
	}
	fsmAddEvent(window, 'load', new Function('listMenu.activateMenu("listMenuRoot", arrow)'));
</script>
<?php } ?>
<script language="javascript" type="text/javascript" src="../libraries/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
	//For relative host when image attached
	remove_script_host : false,
    convert_urls : false,
	mode : "exact",
    elements : "x_content",
	height : 300,
    theme: "modern",
    plugins: [
        "advlist autolink lists link image charmap print preview hr anchor pagebreak",
        "searchreplace wordcount visualblocks visualchars code fullscreen",
        "insertdatetime media nonbreaking save table contextmenu directionality",
        "emoticons template paste textcolor filemanager"
    ],
    toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
    toolbar2: "print preview media | forecolor backcolor emoticons",
    image_advtab: true,
    templates: [
        {title: 'Test template 1', content: 'Test 1'},
        {title: 'Test template 2', content: 'Test 2'}
    ]
});
</script>
</head>
<body>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td colspan="2" height="121">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="header" width="1"><a href="../../" target="_blank"></a></td>
          <td valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="right" class="headerRight"><img src="../images/admin-header-logo-developer.png" alt="Administrator Area" border="0"></td>
            </tr>

            <tr>
              <td class="headerAppRight"><table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="500" align="left"><?php if(IsLoggedIn()){ ?>
                      Welcome <strong><?=$_SESSION[full_name]?></strong>
                      in our cms / <a href="../../" target="_blank">Go to Website Page</a>
                      <?php }else{ ?>
                      Welcome to our cms please login / <a href="../../" target="_blank">Go to Website Page</a>
                      <?php } ?>
                    </td>
                    <td><img src="../images/spacer.gif" width="1" height="35"></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td class="headerLine"><img src="../images/spacer.gif" width="1" height="10"></td>
            </tr>
          </table></td>
        </tr>
      </table>
	  </td>
</tr>
<tr>
	<!-- left column -->
	<td width="1" height="100%" valign="top" style="padding:10px;" background="../images/admin-menu-background.png">
		<table width="100%" border="0" cellspacing="0" cellpadding="4" class="menu">
		<tr>
		  <td>
				<?php 
					if (IsLoggedIn()) {
						include ("menu.php");
					}
				?>		  
		  </td>
		  </tr>
		<tr>
			<td style="border-bottom:none;"><img src="../images/spacer.gif" width="177" height="1"></td>
		</tr>	
		</table>
	</td>
	<td valign="top" class="content">
	<?php
		$currentFile = $_SERVER["PHP_SELF"];
		$parts = explode('/', $currentFile);
		$file = $parts[count($parts) - 1];
		if (!IsLoggedIn() && $file<>'login.php') {
			header("Location:login.php");
			exit;
		}
	?>	